home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / mac_gdiff 1.51 / mac_readme < prev    next >
Encoding:
Text File  |  1992-06-18  |  2.1 KB  |  67 lines  |  [TEXT/KAHL]

  1. gdiff is a macintosh port of the gnu diff utility.  You can run it and give a
  2. normal unix input line such as:
  3.  
  4. gdiff +recursive boot:dir1 boot:dir2
  5.  
  6. to the console command dialog.  Hit return for the list of options.
  7.  
  8.  
  9. You can also make a gnu diff command file that you can double click on.
  10.  
  11. -Create a macintosh TEXT file with your faviorite text editor,
  12.  I use think c
  13.  The file should have one line like this:
  14.  gdiff +recursive boot:dir1 boot:dir2 > gdiff.output
  15. -Examine the file with resedit, resourcerer, or fedit
  16.  Change the the creator to GnuD (case sensitive)
  17.  You may need to check 'not inited' when changing this for the
  18.  finder to notice it.
  19. -Then you can double click on this file and it will run gnu diff
  20.  
  21. Additional options available in the command file only:
  22. > redirect to an output file, if you use the dialog you need to pick
  23.   the output file with the button.
  24.  
  25. >+ Redirect but don't echo to the console for speed
  26.  
  27. >+! (exclamation point) exit without pausing to hit return at the end.
  28.  
  29.  
  30. So a "normal" gdiff command file would be:
  31.  
  32. gdiff +recursive boot:dir1 boot:dir2 >+! boot:dir_diff
  33.  
  34.  
  35. Sources and executables are available on host akutaktak.andrew.cmu.edu
  36. [128.2.35.1] in the /aw0g directory as:
  37.  
  38. gdiff-1.15.tar - original gnu diff as I got it off of prep.ai.mit.edu
  39. gdiff-mac1.1.15.hqx
  40.    - binary distribution of macintosh gnu diff mac version
  41.      in binhex format
  42. gdiff-mac1.src.1.15.tar - source distribution of macintosh gnu diff  mac version 1
  43.  
  44. AUTHOR:
  45.   GNU diff - unknown possibly rms
  46.   Macintosh port - Aaron Wohl aw0g+@andrew.cmu.edu
  47.  
  48.  
  49. BUGS:
  50. The mac user interface is *really* bad
  51. Patch hasn't been ported yet to go with it
  52.  
  53. BUILDING FROM SOURCES:
  54. -Compiler required thinkc 5.0
  55.  In the think c directory make a copy of ANSI called ANSI-i4BIG, copy unix to unix-i4BIG
  56.  Open both of these projects and change the following:
  57.    under project type set far code and far data
  58.    under prefrences
  59.       define __STDC__
  60.       infer prototypes
  61.       4byte integers (important!)
  62.         optimize
  63.           automatic register yes
  64.           global optimizer on
  65.  
  66. -open the mac_gdiff.prj and build the application
  67.